package day04;

public class WhileDemo {
    public static void main(String[] args) {
        int times = 0;
        while (times<5){
            System.out.println("行动|]是成功的阶梯");
            times++;
        }
        System.out.println("继续执行");
        /*
        times =0 行动 times+1
        times =1 行动 times+1
        .......
        times =4 行动 times+1
        times =5 结束
         */
        System.out.println("--------------");
        int num = 1;
        while (num<=9){
            System.out.println(num+"*9= "+num*9);
            num+=2;
        }
        System.out.println("继续执行");
        /*
        num =1 1*9=9 num=1+2
        num=3 3*9=27 num=3+2
        .........
        num=9 9*9=81 num=9+2
        num=11 结束
         */
    }
}
